import {createRouter, createWebHashHistory} from 'vue-router';
import home from '../views/home.vue';

export const routes = [
  {
    path: '/',
    name: 'home',
    menu: '首页',
    component: home
  },
  {
    path: '/login',
    name: 'login',
    menu: '登录',
    component: () => import(/* webpackChunkName: "about" */ '../views/login.vue')
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes
});

export default router;
